﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Wheeler.Web.Utility;
using Wheeler.Domain;
using Wheeler.Common.Extensions;
using Wheeler.Web.ViewModels;

namespace Wheeler.Web.Controllers
{
    public class HomeController : BaseController
    {
        private WheelerEntities _Context;

        #region Contstructors

        public HomeController()
        {
            _Context = new WheelerEntities();
        }

        public HomeController(UserViewModel currentUser)
            : base(currentUser)
        {
            _Context = new WheelerEntities();
        }

        #endregion

        /// <summary>
        /// Serves for the Home Page
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            //return View();
            return RedirectToAction("LogOn", "Account");
        }
    }
}
